<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>店面自营产品</title>
	<style type="text/css">
.container{
width: 80%;
margin: auto;
}
</style>
</head>
<body>
<table id="contentTable" class="table table-striped table-bordered ">
		<thead>
		<tr> <th colspan="5"  >已选产品</th></tr>
		<tr><th>产品名称</th><th>产品规格</th><th>数量</th><th>零售价</th><th>操作</th></tr>
		<c:forEach items="${shoppingCart.storeProducts}" var="productCart">
			<tr>
				<td>${productCart.product.name}</td>
				<td>${productCart.product.spec}</td>
				<td>${productCart.count}</td>
				<td>${productCart.product.retail_price}</td>
				<td>
    				<a href="${productCart.product.id}">删除</a>&nbsp;&nbsp;
				</td>
			</tr>
		</c:forEach>
		</thead>
		<tbody>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
	<form:form id="inputForm"   modelAttribute="productCart" action="${ctx}/cash/addStoreProduct" method="post" class="form-horizontal">
			<div class="control-group">
				<label class="control-label">产品名称:</label>
				<div class="controls">
					<form:input path="product.name" htmlEscape="false" maxlength="16" class="required"/>
				</div>
			</div>
	</form:form>
	
</body>
</html>
